package com.eco.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author xulinyu
 * @since 2024-07-18
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("record")
@ApiModel(value = "Record对象", description = "")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recordId", type = IdType.AUTO)
    private Long recordId;

    @TableField("recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    @TableField("length")
    private Double length;

    @TableField("width")
    private Double width;

    @TableField("fishSpeed")
    private String fishSpeed;

    @TableField("direction")
    private Integer direction;

    @TableField("temperature")
    private Double temperature;

    @TableField("waterLevel")
    private Double waterLevel;

    @TableField("speed")
    private String speed;

    @TableField("fishPosition")
    private Double fishPosition;

    @TableField("firstImgUrl")
    private String firstImgUrl;

    @TableField("secondImgUrl")
    private String secondImgUrl;

    @TableField("videoUrl")
    private String videoUrl;

    @TableField("stationName")
    private String stationName;

    @TableField("category")
    private String category;

    @TableField("size")
    private String size;

    @TableField("kinds")
    private String kinds;
}
